<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class RegisterAuthRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        
        return false;
    } 

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
       
        return [
            // 'name' => 'required|string',
            // 'email' => 'required|email|unique:users',
            // 'password' => 'required|string|min:6|max:10'
        ];
    }

    public function messages()
    {
        return [
            // 'name.required'=>'用户ID必须填写',
            // // 'name.exists'=>'用户不存在',
            // 'email.required' => '用户名已经存在',
            // 'password.required' => '用户名不能为空',
            // 'name.max' => '用户名最大长度为12个字符',
            // 'password.required' => '密码不能为空',
            // 'password.max' => '密码长度不能超过16个字符',
            // 'password.min' => '密码长度不能小于6个字符'
        ];
    }

    


}
